/*=============================================================================
**                                  
**                      Proprietary - Copyright (C) 2013
**-----------------------------------------------------------------------------
** Supported MCUs      : <PIC16F887 / MCU independent>
** Supported Compilers : <MPLABX IDE / compiler independent>
**-----------------------------------------------------------------------------
** File name         : Std_Types.h
**
** Module name       : Std_Types
**
**
** Summary: __________________________
**
**= History ===================================================================
** 1.00 03/04/2013 Cuong Chu
** - Creation
=============================================================================*/

#ifndef STD_TYPES_H
#define STD_TYPES_H

/******************************************************************************/
/* TYPES DEFINITION                                                           */
/******************************************************************************/
typedef unsigned char  uint8;
typedef unsigned int   uint16;
typedef unsigned long  uint32;
typedef uint8 Std_ReturnType;
#define E_OK        0x00
#define E_NOT_OK    0x01
#define STD_HIGH    0x01   /* Physical state 5V or 3.3V */
#define STD_LOW     0x00   /* Physical state 0V         */

#define STD_ACTIVE  0x01   /* Logical state active */
#define STD_IDLE    0x00   /* Logical state idle   */

#define STD_ON      0x01
#define STD_OFF     0x00

#ifndef BOOLEAN
#define BOOLEAN       uint8
#endif
#ifndef TRUE
#define TRUE        0x01
#endif
#ifndef FALSE
#define FALSE       0x00
#endif

#endif /* IF_8BIT_H */

